package cn.dong.ucenter.feign.fallback;

import cn.dong.base.dto.TradeOrderDto;
import cn.dong.base.handler.CustomException;
import cn.dong.ucenter.feign.TradeOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class TradeOrderServiceImpl implements TradeOrderService {


    @Override
    public List<TradeOrderDto> getOrderByMemberId(String id) {
        log.error("触发熔断");
        throw new CustomException(400000, "系统繁忙，请稍后重试");
    }
}
